package org.xinghai.sql.dialogue.utils;

import org.xinghai.sql.dialogue.generator.domain.ChatHistory;

import java.util.List;

public class QueryUtils {
    public static String createQuery(List<ChatHistory> chatHistories){
        StringBuilder sb = new StringBuilder();
        for (ChatHistory chatHistory : chatHistories) {
            sb.append(chatHistory.getRole()).append(":").append(chatHistory.getContent()).append("\n");
        }
        return sb.toString();
    }
}
